package com.weiyi.portal.modules.ums.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author PZC
 * @since 2022-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ums_chat_list")
@ApiModel(value="UmsChatList对象", description="")
public class UmsChatList implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "聊天列表主键")
    @TableId(value = "list_id", type = IdType.AUTO)
    private Integer listId;

    @ApiModelProperty(value = "聊天主表id")
    private String linkId;

    @ApiModelProperty(value = "发送者")
    private String fromUser;

    @ApiModelProperty(value = "接收者")
    private String toUser;

    @ApiModelProperty(value = "发送方是否在窗口")
    private Integer fromWindow;

    @ApiModelProperty(value = "接收方是否在窗口")
    private Integer toWindow;

    @ApiModelProperty(value = "未读数")
    private Integer unread;

    @ApiModelProperty(value = "是否删除")
    private Integer status;

    public UmsChatList(Integer listId, String linkId, String fromUser, String toUser, Integer fromWindow, Integer toWindow, Integer unread, Integer status) {
        this.listId = listId;
        this.linkId = linkId;
        this.fromUser = fromUser;
        this.toUser = toUser;
        this.fromWindow = fromWindow;
        this.toWindow = toWindow;
        this.unread = unread;
        this.status = status;
    }

    public UmsChatList() {
    }
}
